package com.wgts.wgts.dagger.module;

import com.wgts.wgts.dagger.scope.ActivityScope;
import com.wgts.wgts.mvp.model.IGuessingAndAwardDetailsActivityModel;
import com.wgts.wgts.mvp.model.imp.GuessingAndAwardDetailsActivityModel;
import com.wgts.wgts.mvp.presenter.IGuessingAndAwardDetailsActivityPresenter;
import com.wgts.wgts.mvp.presenter.imp.GuessingAndAwardDetailsActivityPresenter;
import com.wgts.wgts.mvp.view.IGuessingAndAwardDetailsActivityView;
import com.wgts.wgts.netmodle.NetService;

import dagger.Module;
import dagger.Provides;

@Module
public class GuessingAndAwardDetailsActivityModule {

    private IGuessingAndAwardDetailsActivityView view;

    public GuessingAndAwardDetailsActivityModule(IGuessingAndAwardDetailsActivityView view) {
        this.view = view;
    }

    @Provides
    @ActivityScope
    public IGuessingAndAwardDetailsActivityView provideView(){
        return view;
    }

    @Provides
    @ActivityScope
    public IGuessingAndAwardDetailsActivityModel provideModel(NetService netService){
        return new GuessingAndAwardDetailsActivityModel(netService);
    }

    @Provides
    @ActivityScope
    public IGuessingAndAwardDetailsActivityPresenter providePresenter(IGuessingAndAwardDetailsActivityView view, IGuessingAndAwardDetailsActivityModel model){
        return new GuessingAndAwardDetailsActivityPresenter(model, view);
    }
}
